package cn.hsa.fqz.common.enums;

public enum ClueSourceTypeEnum {
    COUNTRY_DUE("国家交办","1"),PROVINCE_TEL("省举报电话","2"),PROVINCE_EMAIL("省举报邮箱","3"),OTHER_DUE("其他部门转交","4"),
    WEIXIN("商请国家局协查","5"),OTHER("其他","6"),WARN_JUDGE("预警研判","7"),WORK_REPORT("专项整治工作填报","8");

    private String label;

    private String value;

    ClueSourceTypeEnum(String label,String value){
        this.label = label;
        this.value = value;
    }

    public ClueSourceTypeEnum getByValue(String value){
        ClueSourceTypeEnum result = ClueSourceTypeEnum.OTHER;
        for(ClueSourceTypeEnum enums: ClueSourceTypeEnum.values()){
            if(enums.value.equals(value)){
                result = enums;
            }
        }
        return result;
    }

    public String getValue(){
        return this.value;
    }

    public String getLabel(){
        return this.label;
    }
}
